package org.example.module.mq.topic;

import org.example.module.entity.SysUser;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
@RabbitListener(queues = "topic.woman")
public class TopicTotalReceiver {
 
    @RabbitHandler
    public void process(SysUser user) {
        System.out.println("TopicTotalReceiver消费者收到消息  : " + user.toString());
    }
}